package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"pet-management-project/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/user/register", &controllers.PetControllers{}, "Post:Register")
	beego.Router("/user/login", &controllers.PetControllers{}, "Post:Login")
	beego.Router("/pet/cateadd", &controllers.PetControllers{}, "Post:CateAdd")
	beego.Router("/pet/petadd", &controllers.PetControllers{}, "Post:PetAdd")
	beego.Router("/pet/petlist", &controllers.PetControllers{}, "Post:PetList")
	beego.Router("/pet/petdel", &controllers.PetControllers{}, "Post:PetDel")
	beego.Router("/pet/petinfo", &controllers.PetControllers{}, "Post:PetInfo")
}
